using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._SpatialAnalystTools._Local
{
    /// <summary>
    /// <para>Lowest Position</para>
    /// <para>Determines on a cell-by-cell basis the position of the raster with the minimum value in a set of rasters.</para>
    /// <para>逐个像元确定栅格在一组栅格中具有最小值的位置。</para>
    /// </summary>    
    [DisplayName("Lowest Position")]
    public class LowestPosition : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public LowestPosition()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_rasters_or_constants">
        /// <para>Input rasters or constant values</para>
        /// <para><xdoc>
        ///   <para>The list of input rasters for which the position of the input with the lowest value will be determined.</para>
        ///   <para>A number can be used as an input; however, the cell size and extent must first be set in the environment.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>将确定其输入值最低位置的输入栅格列表。</para>
        ///   <para>数字可以用作输入;但是，必须首先在环境中设置像元大小和范围。</para>
        /// </xdoc></para>
        /// </param>
        /// <param name="_out_raster">
        /// <para>Output raster</para>
        /// <para><xdoc>
        ///   <para>The output raster.</para>
        ///   <para>For each cell in the output raster, the value represents the position of the raster with the lowest value.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输出栅格。</para>
        ///   <para>对于输出栅格中的每个像元，该值表示具有最低值的栅格的位置。</para>
        /// </xdoc></para>
        /// </param>
        public LowestPosition(List<object> _in_rasters_or_constants, object _out_raster)
        {
            this._in_rasters_or_constants = _in_rasters_or_constants;
            this._out_raster = _out_raster;
        }
        public override string ToolboxName => "Spatial Analyst Tools";

        public override string ToolName => "Lowest Position";

        public override string CallName => "sa.LowestPosition";

        public override List<string> AcceptEnvironments => ["autoCommit", "cellSize", "cellSizeProjectionMethod", "compression", "configKeyword", "extent", "geographicTransformations", "mask", "outputCoordinateSystem", "scratchWorkspace", "snapRaster", "tileSize", "workspace"];

        public override object[] ParameterInfo => [_in_rasters_or_constants, _out_raster];

        /// <summary>
        /// <para>Input rasters or constant values</para>
        /// <para><xdoc>
        ///   <para>The list of input rasters for which the position of the input with the lowest value will be determined.</para>
        ///   <para>A number can be used as an input; however, the cell size and extent must first be set in the environment.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>将确定其输入值最低位置的输入栅格列表。</para>
        ///   <para>数字可以用作输入;但是，必须首先在环境中设置像元大小和范围。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input rasters or constant values")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public List<object> _in_rasters_or_constants { get; set; }


        /// <summary>
        /// <para>Output raster</para>
        /// <para><xdoc>
        ///   <para>The output raster.</para>
        ///   <para>For each cell in the output raster, the value represents the position of the raster with the lowest value.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输出栅格。</para>
        ///   <para>对于输出栅格中的每个像元，该值表示具有最低值的栅格的位置。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output raster")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_raster { get; set; }


        public LowestPosition SetEnv(int? autoCommit = null, object cellSize = null, object compression = null, object configKeyword = null, object extent = null, object geographicTransformations = null, object mask = null, object outputCoordinateSystem = null, object scratchWorkspace = null, object snapRaster = null, double[] tileSize = null, object workspace = null)
        {
            base.SetEnv(autoCommit: autoCommit, cellSize: cellSize, compression: compression, configKeyword: configKeyword, extent: extent, geographicTransformations: geographicTransformations, mask: mask, outputCoordinateSystem: outputCoordinateSystem, scratchWorkspace: scratchWorkspace, snapRaster: snapRaster, tileSize: tileSize, workspace: workspace);
            return this;
        }

    }

}